import request from '@/utils/request'
// 添加药品分类
export function addMedicineCategory(value) {
    return request({
        method: "GET",
        url: "/med-admin-drugs/drugs/category/add",
        params: value
    })

}

// 查询药品分类列表
export function listMedicineCategory(params) {
    return request({
        method: "GET",
        url: "/med-admin-drugs/drugs/category/list",
        params: params
    })
} 

// 修改药品分类
export function updateMedicineCategory(data) {
    console.log(data);
    
    return request({
        method: "POST",
        url: "/med-admin-drugs/drugs/category/update",
        data: data
    })
}

// 删除药品分类
export function deleteMedicineCategory(id) {
    return request({
        method: "GET",
        url: "/med-admin-drugs/drugs/category/delete",
        params:  {medicineCategoryId:id }
    })
}